cmake_minimum_required(VERSION 3.12)
project(bbtcpb)

set(CMAKE_CXX_STANDARD 14)
if(NOT WIN32)
    message(FATAL_ERROR "This project can only be compiled on Windows systems.")
endif()

include_directories(BBTCP/inc)
include_directories(Demo)

add_library(BBTCP
        BBTCP/inc/API.h
        BBTCP/inc/BBTCP.h
        BBTCP/inc/linkedlist.h
        BBTCP/inc/MsgPack.h
        BBTCP/inc/nfevents.h
        BBTCP/src/API.cpp
        BBTCP/src/BBTCP.cpp)

add_executable(BBTCPDemo
        BBTCP/inc/API.h
        BBTCP/inc/BBTCP.h
        BBTCP/inc/linkedlist.h
        BBTCP/inc/MsgPack.h
        BBTCP/inc/nfevents.h
        Demo/cDemo.h
        Demo/cppDemo.h
        Demo/Demo.cpp
        Demo/httpDemo.h)
target_link_libraries(BBTCPDemo BBTCP)
